-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it harder to overwrite published, Production apps #559
Make it harder to overwrite published, Production apps #559
Conversation
@MichaelGoberling code conflict reported, can you resolve so the tests run? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm, comments about flag descriptions
Codecov Report
@@ Coverage Diff @@
## master #559 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 50 50
Lines 2619 2629 +10
Branches 476 478 +2
=========================================
+ Hits 2619 2629 +10
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Update: We are still looking over semantics to make sure the --force-deploy flag makes sense. Discussion and final decision needed before merging. |
I can't think of a better syntax for triggering this functionality so I will lets move forward with this. |
This caused a bug: #587 (am fixing) |
This pull request proposes checking the Extension Registry API to see if an App Builder application is in a published state before attempting to deploy action code or web assets. It also proposes adding a flag which will bypass this check and allow users to deploy code for published Production applications.
Description
These changes implement the new Console API and Extension Registry API changes introduced here so that we can determine if an App Builder application is in a published state or not.
The
getProject
function was needed from the Console API so that we can fetch theappId
for the project that is stored in the Extension Registry.A new flag
force-deploy
has been added as a part of this pull request for thedeploy
command that bypasses this check.Related Issue
Motivation and Context
To make it more difficult to overwrite published Production App Builder applications.
How Has This Been Tested?
Tested locally with
npm run test
and linked version ofaio-cli-lib-console
andaio-lib-console
.Screenshots (if appropriate):
Types of changes
Checklist: